﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace App.Web.ViewModels
{
    public class FeedbackViewModel
    {
        [Required (ErrorMessage="Please Enter your Name.")]
        [Display(Name="Name")]
        public String Name { get; set; }

        [Required (ErrorMessage="Please Enter your Email.")]
        [Display(Name="Email")]
        [RegularExpression(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", ErrorMessage = "Please Enter a valid Email address")]
        public String Email { get; set; }

        [Required(ErrorMessage = "Please Enter your Message.")]
        [Display(Name = "Message")]
        public String Message { get; set; }

        [Required(ErrorMessage = "Please Enter a Subject.")]
        [Display(Name = "Subject")]
        public String Subject { get; set; }
    }
}